package do1.mobo.widget;

import do1.common.json.JSONObject;
import do1.common.util.JsonUtil;
import do1.mobo.constant.Constant;
import android.content.Context;
import android.view.View;

public class HiddenView extends View
{

	public HiddenView(Context context)
	{
		super(context);
		setVisibility(View.INVISIBLE);
		setLayoutParams(LayoutUtil.getLayoutParams(0,0));
	}

	
	public void parse(JSONObject json)
	{
		String id=JsonUtil.getString(json,Constant.JSON_KEY_ID);
		String value=JsonUtil.getString(json,Constant.JSON_KEY_VALUE);
		
		ViewTag tag=new ViewTag(this);
		tag.setName(id);
		tag.setValue(value);
		tag.setValueable(true);
		
		setTag(tag);
	}
}
